package com.rdc.qingkou.contract;

import com.rdc.qingkou.entity.ModifyUserInfoResult;
import com.rdc.qingkou.model.imodel.OnHttpCallBack;

import java.io.File;

/**
 * Created by WaxBerry on 2017/11/12.
 */

public class UserInfoContract {

    public interface IView{

        void showData(ModifyUserInfoResult modifyUserInfoResult);//显示数据到View上（用户个人信息）
        void showModifyResult(ModifyUserInfoResult modifyUserInfoResult);
        void showInfo(String info);//提示用户,提升友好交互
    }

    public interface IModel {

        void getUserInfo(Integer userId,OnHttpCallBack<ModifyUserInfoResult> callBack);
        void modifyUserInfo(File photo,int sex,String nickName,String signature,Integer userId, OnHttpCallBack<ModifyUserInfoResult> callBack);
    }

    public interface IPresenter {

        void getUserInfo(Integer userId);
        void modifyUserInfo(File photo,int sex,String nickName,String signature,Integer userId);
    }
}
